package com.zfskkk.demoprovider;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangfoshou
 * @date 2018/9/28 18:09
 */
@RestController
@RequestMapping("provider")
public class HelloController {

    @Autowired
    private Config config;

    @RequestMapping("/")
    public String hello() {
        return "hello";
    }

    @RequestMapping("/hello")
    public String hello1() {
        System.out.println(config);
        return "this is provider hello method";
    }

}
